//----------------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------------
Ti.include('lib/include.js');
Ti.include('lib/constants.js');
Ti.include('data/db.js');



//----------------------------------------------------------------------------
// databases initialiseren
//----------------------------------------------------------------------------
setupApothekenDB();
populateApothekenDB();
setupHHReceptenDB();



//----------------------------------------------------------------------------
// Platform specifieke code
//----------------------------------------------------------------------------
var platform = Ti.Platform.osname;
var version = Ti.Platform.version;
log('Platform: ' +platform +', versie: ' +version);

if (isIphone() || isIpad()) {
   if (!isIOS7Plus()) {
      Titanium.UI.iPhone.hideStatusBar();   
   }
   Ti.include('app_ios.js');
}
else if (isAndroid()) {
   Ti.include('app_android.js');
}
else {
   // momenteel nog geen ondersteuning voor BB, Tizen etc.
   log("Platform " +platform +" wordt niet ondersteund!");
}
